<script lang="ts" setup>
import { reactive } from 'vue'

const defaultUser = {
    name: "Maya",
    age: 20
}

const user = reactive({ ...defaultUser })

user.name = "Rachel"
user.age = 30

console.log(defaultUser)  // {name: "Maya", age: 20}

defaultUser.name = "Samuel"

console.log(user)   // {name: "Rachel", age: 30}

</script>
